package prototypePattern;

public class Attachment {
	public String Name;
	
	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	
	public Attachment Clone() {
		Attachment attachment=null;
		try {
			attachment=(Attachment)super.clone();
			attachment.Name=new String(Name);
		}catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return attachment;
		
	}
}